<template>
  <div id="app">
    <div class="a">
      <p>用</p>
      <p>心</p>
      <p>做</p>
      <p>好</p>
      <p>每</p>
      <p>一</p>
      <p>次</p>
      <p>服</p>
      <p>务</p>
    </div>
    <div class="logo">
      <div class="aa">易生活</div>
      <div class="aaa">易生活</div>
    </div>
  </div>
</template>

<script>
export default {
  created() {
    this.goWhere()
  },
  methods: {
    goWhere() {
      const token = localStorage.getItem("token");

      setTimeout(() => {
        if (token) {
          this.$router.push("/home/homes");
        } else {
          this.$router.push("/denglu");
        }
      }, 2000);
    },
  },
};
</script>

<style scoped>
#app {
  width: 100%;
  height: 100%;
}
.a {
  width: 0.2rem;
  font-size: 0.25rem;
  margin: auto;
  opacity: 0.6;
}
.aa {
  width: 0.6rem;
  height: 0.6rem;
  background-color: #00b6b5;
  font-size: 0.2rem;
  padding: 0.1rem;
  border-radius: 0.1rem;
  text-align: center;
  line-height: 0.6rem;
  color: azure;
}
.aaa {
  width: 0.8rem;
  height: 0.3rem;
  font-size: 0.25rem;
  opacity: 0.6;
}
.logo {
  position: absolute;
  bottom: 10%;
  left: calc(50% - 0.4rem);
}
.a :nth-child(4) {
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
}
</style>
